package com.hnas.account.dao;

import com.hnas.account.orm.Account;
import com.hnas.core.dao.BaseDao;

public interface AccountDAO extends BaseDao<Account>{

	Account save(Account vo);
	
	Account findByOpenId(String openId);
	
	Account findByPhoneNo(String phoneNo);
	
	void unBindOpenid(String openId);
	
	void updateOpenIdAndTime(String id, String openId, String updateTime,String appid);

	void unBindAccountById(String accountId);
	
	void bindAcountById(String accountId,String bindOpenId);

	void updateTimeBack(String accountId, String updateTime);

	Account saveOrUpdate(Account vo);
	
	Account findById(String id);
	
	Account checkedAppTokenIsExist(String accountId,String token);
	
	Account checkedAppTokenOverTime(String accountId,String token);
	
	Account checkedWXXNKTokenIsExist(String openid,String token);
	
	Account checkedWXXNKTokenOverTime(String openid,String token);
	
	Account findByEmpId(String empId);
}
